<template>
  <el-button 
    type="primary" 
    @click="$router.push('/login')"
    class="auth-btn login-btn"
  >
    <el-icon><User /></el-icon>
    登录
  </el-button>
</template>

<script>
import { User } from '@element-plus/icons-vue'

export default {
  name: 'LoginButton',
  components: {
    User
  }
}
</script>

<style scoped>
.auth-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.login-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
}
</style> 